package com.aspyn.servicestest;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.widget.Toast;

public class TestService extends Service {
	
	LocalBinder myBinder;
	
	public class LocalBinder extends Binder {
		TestService getService() {
			return TestService.this;
		}
	}
	@Override
	public void onCreate() {
		super.onCreate();
		myBinder = new LocalBinder();
	}
	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return (IBinder) myBinder;
	}
	
	@Override
	public void onStart(Intent intent, int startId) {
		Toast.makeText(this, "Called", Toast.LENGTH_SHORT).show();
	}
}
